﻿using System;

namespace Practice_Exam23._06._2013
{
    class Fire
    {
        static void Main()
        {
            int width = int.Parse(Console.ReadLine());

           //Prints top of the fire
            for (int i = 0; i < width/2; i++)
            {
                for (int j = 0; j < width; j++)
                {
                    if ((j == width / 2 - i-1) || (j == width / 2 + i))
                    {
                        Console.Write("#");
                    }
                    else
                    {
                        Console.Write(".");
                    }
                }
                Console.WriteLine(); 
            }

            //Prints bottom of the fire
            for (int i = 0; i < width/4; i++)
            {
                for (int p = 0; p < width; p++)
                {
                    if (i==p||p==width-i-1)
                    {
                        Console.Write("#");
                    }
                    else
                    {
                        Console.Write(".");
                    }
                }
                Console.WriteLine();
            }

            // Prints border between fire and torch handle
            for (int i = 0; i < width; i++)
            {
                Console.Write("-");
            }
            Console.WriteLine();

            //Prints torch handle
            for (int i = 0; i < width/2; i++)
            {
                for (int k = 0; k < width; k++)
                {
                    if (i>k||k>width-i-1)
                    {
                        Console.Write(".");
                    }
                    else if (k <= width / 2-1)
                    {
                        Console.Write("\\");
                    }
                    else if (k >= width / 2)
                    {
                        Console.Write("/");
                    }
                }
                Console.WriteLine();
            }
        }
    }
}
